package com.leo.ibatis.demo.dao;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.leo.ibatis.demo.criteria.ProductCriteria;
import com.leo.ibatis.demo.domain.Product;

public interface ProductDao {

	void insert(Product product) throws DataAccessException;

	int update(Product product) throws DataAccessException;

	int delete(String productid) throws DataAccessException;

	Product select(String productid) throws DataAccessException;

	List<Product> list(ProductCriteria productCriteria) throws DataAccessException;
	
	List<Product> listOnPage(ProductCriteria productCriteria) throws DataAccessException;
	
	int count(ProductCriteria productCriteria) throws DataAccessException;

}
